package com.zkthink.ceres.product.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zkthink.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.zkthink.ceres.product.entity.ProductAttr;
import com.zkthink.ceres.product.entity.ProductDiscountConfig;
import com.zkthink.ceres.product.entity.ProductImg;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 实体类
 * 商品组合对象
 * </p>
 *
 * @author JustArgo
 * @since 2020-05-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ProductCombineDTO", description = "商品组合对象")
public class ProductCombineDTO extends ProductSaveDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty(value = "商品对应的图片")
    private List<ProductImgSaveDTO> imgs;

    @ApiModelProperty(value = "规格列表")
    private List<ProductAttrCombineSaveDTO> skuAttrList;

    @ApiModelProperty(value = "商品sku列表")
    private List<ProductSkuSaveDTO> skuList;

    @ApiModelProperty("折扣配置表")
    private ProductDiscountConfig productDiscountConfig;


}
